package com.sunwayhorizo.health.business.clinic.orders.basedef;

import java.util.List;

import javax.ejb.Local;

import com.sunwayhorizo.health.business.dto.PageDTO;
import com.sunwayhorizo.health.business.dto.ResultsDTO;
import com.sunwayhorizo.health.business.dto.clinic.orders.SubstanceAdmtDTO;
import com.sunwayhorizo.health.hl7.common.Hl7Exception;

@Local
public interface SubstanceAdmtDefManagerLocal
{

    /**
     * 添加药品基本信息
     * @param substanceAdmtDTO
     * @return ResultsDTO
     * @throws Hl7Exception
     */
    public ResultsDTO newSubstanceAdmtDefManager(SubstanceAdmtDTO substanceAdmtDTO) throws Hl7Exception;
    
    /**
     * 修改药品基本信息
     * @param substanceAdmtDTO 药品基本信息DTO
     * @return ResultsDTO
     * @throws Hl7Exception
     */
    public ResultsDTO updSubstanceAdmtDefManager(SubstanceAdmtDTO substanceAdmtDTO) throws Hl7Exception;
    
    /**
     * 删除药品基本信息
     * @param ids 基本信息DTO
     * @return ResultsDTO
     * @throws Hl7Exception
     */
    @SuppressWarnings("rawtypes")
    public ResultsDTO delSubstanceAdmtDefManager(List ids) throws Hl7Exception;
    
    /**
     * 根据药理分类code查询该分类下的所有药品
     * @param materialclass 药理分类Code
     * @param pageDTO 分页信息
     * @return ResultsDTO
     * @throws Hl7Exception
     */
    public ResultsDTO findSubstanceAdmtDefList(String materialclass,PageDTO pageDTO) throws Hl7Exception;
    
    /**
     * 验证药品编码是否重复
     * @param id 药品编码
     * @param entyId 药品信息主键id
     * @return 0：重复 1：不重复
     * @throws Hl7Exception
     */
    public ResultsDTO validationSubAdmtId(String id,String entyId) throws Hl7Exception;
}
